package com.tebiecloud.order.client.service;

import com.tebiecloud.common.model.ResultBody;
import com.tebiecloud.order.client.model.entity.Reserve;
import io.swagger.models.auth.In;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

public interface IReserveServiceClient {

    /**
     * 获取个人或者预约单列表
     * @param storeId
     * @param userId
     * @return
     */
    @PostMapping("/feign/reserve/selectReserveList")
    ResultBody<List<Reserve>> selectReserveList(
            @RequestParam(value = "storeId",required = false) Long storeId,
            @RequestParam(value = "userId",required = false) Long userId,
            @RequestParam(value = "statusList",required = false) String statusList);

    /**
     * 修改状态
     * @param reserveId
     * @param status
     * @return
     */
    @PostMapping("/feign/reserve/update")
    ResultBody<Reserve> update(
            @RequestParam(value = "reserveId",required = false) Long reserveId,
            @RequestParam(value = "status",required = false) Integer status);

    /**
     * 通知门店排号任务
     * @param storeId
     * @return
     */
    @PostMapping("/feign/reserve/noticeReserve")
    ResultBody noticeReserve(
            @RequestParam(value = "storeId",required = false) Long storeId);
}
